package com.bafa.front.events;

import com.bafa.dbcache.LeagueCache;
import com.bafa.exceptions.ErrorException;
import com.bafa.front.DaddyServlet;
import com.bafa.front.presentationbeans.TeamBean;
import com.bafa.front.utils.FrontUtils;
import com.bafa.objects.PageBean;
import com.bafa.objects.team.Team;
import com.bafa.services.RetrieveServices;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class DisplayTeamAdminEvent extends Event {


    @Override
    public void doEvent(HttpServletRequest request, 
                        HttpServletResponse response, PageBean page)  {

        HttpSession session = request.getSession();
        TeamBean team = new TeamBean(RetrieveServices.getTeam(request.getParameter("teamId")),0);
       


        request.setAttribute("Team", team);


    }
}
